@extends('model/admin')

@section('title','修改友情链接')


@section('content')

<div class="mws-panel grid_8">
    <div class="mws-panel-header">
        <span>修改友情链接</span>
    </div>
    <div class="mws-panel-body no-padding">
    @if (count($errors) > 0)
		<div class="mws-form-message error">
	        <ul>
	            @foreach ($errors->all() as $error)
	                <li>{{ $error }}</li>
	            @endforeach
	        </ul>
	    </div>
	@endif
		<form action="/admin/links/update" method='post' class="mws-form" enctype='multipart/form-data'>
			<div class="mws-form-inline">
				<div class="mws-form-row">
					<label class="mws-form-label">链接名:</label>
					<div class="mws-form-item">
						<input type="text" class="small" name='linkname' value="{{$res['linkname']}}">
					</div>
				</div>
				<div class="mws-form-row">
					<label class="mws-form-label">链接地址:</label>
					<div class="mws-form-item">
						<input type="text" class="small" name='address' value="{{$res['address']}}">
					</div>
				</div>
				
			</div>
			<div class="mws-button-row">
				{{ csrf_field()}}
				<input type="hidden" name='id' value="{{$res['id']}}">
				<input type="submit" class="btn btn-danger" value="修改">
				<input type="reset" class="btn " value="重置">
			</div>
		</form>
    </div>    	
</div>

@endsection



